<?php
session_start();
if(!$_SESSION['admin']=='root'){
    header('location:/admin/login/login.php');
}
?>
<!doctype html>
<html>
<head>
    <meta charset="UTF-8">
    <title>后台管理系统</title>
    <link rel="stylesheet" type="text/css" href="/public/css/common.css"/>
    <link rel="stylesheet" type="text/css" href="/public/css/main.css"/>
    <script type="text/javascript" src="/public/js/libs/modernizr.min.js"></script>
    <script type="text/javascript" src="/public/js/jquery.min.js"></script>
</head>
<body>
<div class="topbar-wrap white">
    <div class="topbar-inner clearfix">
        <div class="topbar-logo-wrap clearfix">
            <h1 class="topbar-logo none"><a href="index.html" class="navbar-brand">后台管理</a></h1>
            <ul class="navbar-list clearfix">
                <li><a class="on" href="/admin/index.php">首页</a></li>
                <li><a href="/home/index.php" target="_blank">网站首页</a></li>
            </ul>
        </div>
        <div class="top-info-wrap">
            <ul class="top-info-list clearfix">
                <li><a href="#">修改密码</a></li>
                <li><a href="/admin/login/logout.php">退出</a></li>
            </ul>
        </div>
    </div>
</div>
<div class="container clearfix">
    <div class="sidebar-wrap">
        <div class="sidebar-title">
            <h1>菜单</h1>
        </div>
        <div class="sidebar-content">
            <ul class="sidebar-list">
                <li>
                    <a href="#"><i class="icon-font">&#xe003;</i>常用操作</a>
                    <ul class="sub-menu">
                        <li><a href="/admin/user/index.php"><i class="icon-font">&#xe008;</i>用户管理</a></li>
                        <li><a href="/admin/article/index.php"><i class="icon-font">&#xe008;</i>文章管理</a></li>
                        <li><a href="/admin/category/index.php"><i class="icon-font">&#xe008;</i>文章分类</a></li>
                    </ul>
                </li>
            </ul>
        </div>
    </div>
    <!--/sidebar-->